import Foundation

struct Product: Identifiable {
    let id: String
    let name: String
    let price: Double
    let image: String?
    let description: String?
    let category: String?
    var stock: Int = 0
    
    init(id: String, name: String, price: Double, image: String? = nil, description: String? = nil, category: String? = nil, stock: Int = 0) {
        self.id = id
        self.name = name
        self.price = price
        self.image = image
        self.description = description
        self.category = category
        self.stock = stock
    }
}